﻿using System;
using System.Collections.Generic;
using System.Data;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层MeasuringUnit
	/// </summary>
	public interface IMeasuringUnit
    {
        #region 自写方法
        /// <summary>
        /// 分页显示
        /// </summary>
        /// <param name="PageIndex"></param>
        /// <param name="PageSize"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.MeasuringUnit> MeasuringUnitList(int PageIndex, int PageSize);
        /// <summary>
        /// 显示药品用法
        /// </summary>
        /// <returns></returns>
        List<ZX.HIS.Model.MeasuringUnit> MeasuringUnitShow();

        /// <summary>
        /// 总条数查询
        /// </summary>
        /// <param name="StrWhere"></param>
        /// <returns></returns>
        int MeasuringUnitCount();

        /// <summary>
        /// 添加药品用发表
        /// </summary>
        /// <param name="MeasuringUnitModel"></param>
        /// <returns></returns>
        int AddMeasuringUnit(ZX.HIS.Model.MeasuringUnit MeasuringUnitModel);

        /// <summary>
        /// 修改药品信息表
        /// </summary>
        /// <param name="MeasuringUnitModel"></param>
        /// <returns></returns>
        int UpdateMeasuringUnit(ZX.HIS.Model.MeasuringUnit MeasuringUnitModel);
        /// <summary>
        /// 删除药品信息表
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        int DeleteMeasuringUnit(int id);

        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int MeasuringUnitId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.MeasuringUnit model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.MeasuringUnit model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int MeasuringUnitId);
        //bool DeleteList(string MeasuringUnitIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.MeasuringUnit GetModel(int MeasuringUnitId);
        //ZX.HIS.Model.MeasuringUnit DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
